package com.hzhjhh.view.manageView.menus.purchase.payment;

import javax.swing.JButton;

import com.hzhjhh.view.manageView.menus.purchase.PaymentOrderDialog;

/**
 * 菜单栏初始化-采购-付款单弹出框-退出按钮
 * 
 * @author 12083
 *
 */
public class QuitBt {

	/**
	 * 按钮
	 */
	public static JButton btInit(PaymentOrderDialog paymentOrderDialog) {
		JButton quit = new JButton();
		quit.setBounds(620, 376, 80, 35);
        quit.setText("退   出");
        quit.addActionListener(event -> {
        	paymentOrderDialog.setVisible(false); //退出当前界面
        	paymentOrderDialog.disable();
        });
        
		return quit;
	}
}
